import request from '@/utils/request'

export function urlFlush(data) {
  return request({
    url: '/api/cmdb/tencent/cdn/urlflush/',
    method: 'post',
    data
  })
}

export function dirFlush(data) {
  return request({
    url: '/api/cmdb/tencent/cdn/dirflush/',
    method: 'post',
    data
  })
}

export function urlPreHeat(data) {
  return request({
    url: '/api/cmdb/tencent/cdn/urlpreheat/',
    method: 'post',
    data
  })
}

export function flushHistory(data) {
  return request({
    url: '/api/cmdb/tencent/cdn/history/',
    method: 'post',
    data
  })
}
